﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MyCode.Project.Infrastructure.Constant
{
    /// <summary>
    /// 流行美常量 - 全局配置
    /// </summary>
    public partial class GlobalConfig
    {
        /// <summary>
        /// 积分配置
        /// </summary>
        public class IntegralConfig
        {
            /// <summary>
            /// 积分记账开始时间
            /// </summary>
            public const string BILL_KEEPING_BEGIN_TIME = "110001";

            /// <summary>
            /// 积分记账结束时间
            /// </summary>
            public const string BILL_KEEPING_END_TIME = "110002";

            /// <summary>
            /// 积分到期时间
            /// </summary>
            public const string MATURITY_TIME = "110003";

            /// <summary>
            /// 累计消费时间
            /// </summary>
            public const string GRAND_TOTAL_CONSUMPTION_TIME = "110004";
        }

        /// <summary>
        /// 系统配置
        /// </summary>
        public class SysConfig
        {
            /// <summary>
            /// 订单最近更新时间
            /// </summary>
            public const string ORDER_LAST_SEARCH_TIME = "900101";

            /// <summary>
            /// 库存记账类型(1加权平均/2先进先出)
            /// </summary>
            public const string INVENTORY_TYPE = "110041";

            public const string MerchantId = "00000000-0000-0000-0000-000000000009";
        }

        /// <summary>
        /// 会员配置
        /// </summary>
        public class MemberConfig
        {
            /// <summary>
            /// 新用户天数，授权微信不超过的 N 天的为新用户
            /// </summary>
            public const string NEW_USER_DAYS = "110011";

            /// <summary>
            ///  活跃用户天数。活跃用户最近N天天内到店会员
            /// </summary>
            public const string ACTIVE_USER_DAYS = "110012";

            /// <summary>
            /// 沉睡用户大于等于N天内到店会员。与<see cref="SLEEPING_USER_DAYS"/>组合
            /// </summary>
            public const string ACITVE_USER_TRANSACTION_QTY = "110013";

            /// <summary>
            /// 沉睡用户小于等于N天内到店会员。与<see cref="ACITVE_USER_TRANSACTION_QTY"/>组合
            /// </summary>
            public const string SLEEPING_USER_DAYS = "110014";

            /// <summary>
            /// 流失用户大于等于N天未到店会员。
            /// </summary>
            public const string SLEEPING_USER_TRANSACTION_QTY = "110015";
        }

        /// <summary>
        /// 开关配置
        /// </summary>
        public class SwitchConfig
        {
            /// <summary>
            /// 店铺是否允许负库存销售
            /// </summary>
            public const string SHOP_NEGATIVE_STOCK = "110021";
        }

        /// <summary>
        /// 微信配置
        /// </summary>
        public class WechatConfig
        {
            /// <summary>
            /// 公众号配置
            /// </summary>
            public const string PUBLIC = "110031";

            /// <summary>
            /// 预约小程序配置
            /// </summary>
            public const string MINI_RESERVATION = "110032";

            /// <summary>
            /// 积分商城小程序配置
            /// </summary>
            public const string MINI_INTEGRAL_MALL = "110033";
        }

        /// <summary>
        /// 门店配置
        /// </summary>
        public class ShopConfig
        {
            /// <summary>
            /// 预约模板
            /// </summary>
            public const string RESERVATION_TEMPLATE = "210001";
        }

        /// <summary>
        /// 机构配置
        /// </summary>
        public class CorpConfig
        {
            /// <summary>
            /// 是否使用店铺分组。0:不分组,1:分组
            /// </summary>
            public const string SHOP_GROUP = "110021";


        }
    }
}
